classdef onemax < fitness
    methods
        function fit = getfit(obj, pop)
            fit = sum(pop,2);
        end
    end
    
end

